package com.tjbaobao.videoplayol.listener;

/**
 * Created by TJbaobao on 2018/1/12.
 */

public abstract class OnProgressListener {

    public abstract void  onProgress(float progress,boolean isFinish);
    public void onProgress(long sizeProgress,long sizeTotal)
    {
        onProgress((float)sizeProgress/(float)sizeTotal,sizeProgress==sizeTotal||sizeProgress==-1);
    }
}
